<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    /*
    常量 - const
    1、不允许修改值
    2、声明时就给定值，之后不能再修改
    */
    const PI = 3.14
    //PI = 1//错误
    console.log(PI)


  </script>
</body>

</html>